package com.cmccgz.udacs_landlord_webapp.main.host;


import android.content.Context;

import com.cmccgz.baselibrary.base.BasePresenter;
import com.cmccgz.baselibrary.base.BaseView;
import com.cmccgz.udacs_landlord_webapp.bean.DeviceInfoBean;
import com.cmccgz.udacs_landlord_webapp.bean.HostMenuBean;
import com.cmccgz.udacs_landlord_webapp.bean.PushRequestBean;
import com.cmccgz.udacs_landlord_webapp.bean.WebBean;

import java.util.List;

public class HostContract {
    interface Presenter extends BasePresenter {
        void initData(Context context);
        void getDevices();
        void openDoor(String mobile, String deviceId);
        void getReqList(String q_word,String o_cond,String page);
    }

    interface View extends BaseView<Presenter> {
        void getdata(List<HostMenuBean>datas,List<DeviceInfoBean>fastDatas,List<WebBean>bannerDatas);
        void dismissLoadingDialog();
        void getDevicesCache(List<DeviceInfoBean> data);
        void getDevicesSuccess(List<DeviceInfoBean> data);
        void openDoorSuccess();
        void showErrorMsg(String errorMsg);
        void getReqListSuccess(List<PushRequestBean>datas, boolean isNoAccredited);
        void getReqListError(String msg);
    }
}
